package com.pictures.mapper;

import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CommentMapper {
    //查询所有评论
    List<Comment> getComments();

    //根据ID查询一条评论
    Comment getCommentById(@Param("id") Long id);

    //添加一条评论
    void addComment(@Param("comment") Comment comment);

    //根据ID删除一条评论
    int deleteCommentById(@Param("id") Long id);
}
